﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="QL_Dethi.aspx.cs" Inherits="DOAN.Admin.QL_Dethi" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label Text="Môn học" runat="server"></asp:Label>
    <asp:DropDownList ID="drpMon" runat="server">
    </asp:DropDownList>
    <br />
    <asp:RadioButton ID="rdTD" GroupName="ck" runat="server" Text="Tự động"
        AutoPostBack="True" oncheckedchanged="rdTD_CheckedChanged" />
    <asp:RadioButton ID="rdTC" GroupName="ck" runat="server" Text="Thủ công" 
        AutoPostBack="True" oncheckedchanged="rdTC_CheckedChanged" />
    <br />
    <asp:Panel ID="pnTaoDeTD" runat="server" Visible="false">
        <asp:Label ID="Label3" Text="Tổng số câu" runat="server" Width="130px"></asp:Label>
        <asp:TextBox Text="" runat="server" ID="txtTong" Width="130px"></asp:TextBox>
        Câu
        <asp:Label Text="Tổng số câu phải chia hết cho 5" runat="server"></asp:Label><br />
        <asp:Label Text="Số câu khó" runat="server" Width="130px"></asp:Label>
        <asp:TextBox Text="" runat="server" ID="txtKho" Width="130px"></asp:TextBox><br />
        <asp:Label ID="Label1" Text="Số câu trung bình" runat="server" Width="130px"></asp:Label>
        <asp:TextBox Text="" runat="server" ID="txtTB" Width="130px"></asp:TextBox><br />
        <asp:Label ID="Label2" Text="Số câu dễ" runat="server" Width="130px"></asp:Label>
        <asp:TextBox Text="" runat="server" ID="txtDe" Width="130px"></asp:TextBox><br />
        <asp:Label ID="Label4" Text="Trạng thái" runat="server" Width="130px"></asp:Label>
                                    <asp:DropDownList ID="drTT"  Width="128px" runat="server">
                                        <asp:ListItem Selected="True" Value="1">Mở</asp:ListItem>
                                        <asp:ListItem Value="0">Đóng</asp:ListItem>
                                      
                                    </asp:DropDownList>
                              <br />
        <asp:Button ID="btTao" runat="server" Text="Tạo đề" OnClick="btTao_Click" />
    </asp:Panel>
    <asp:Panel ID="GridDe" Visible="false" runat="server">
        <asp:GridView runat="server" ID="GridDethi" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
            AllowPaging="True" CellPadding="4" GridLines="None" Width="679px" 
            ForeColor="#333333" onrowdatabound="GridDethi_RowDataBound">
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField HeaderText="Chọn" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:CheckBox ID="ckb" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Mã câu hỏi:" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblMaCH" Text='<%#DataBinder.Eval(Container.DataItem,"Macauhoi") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblSochuong2" Text='<%#DataBinder.Eval(Container.DataItem,"Noidung") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Độ khó" HeaderStyle-HorizontalAlign="Left">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblSochuon2g" Text='<%#DataBinder.Eval(Container.DataItem,"Dokho") %>'>
                        </asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:Button ID="btLuu" Text="Lưu" runat="server" OnClick="btLuu_Click" Visible="False" />
        <asp:Button ID="Button2" Text="Lưu" runat="server" Visible="False" 
            onclick="Button2_Click" />
    </asp:Panel>
</asp:Content>
